//
//  UIImageView+DownCache.h
//  HomeWork
//
//  Created by apple on 2017/10/26.
//  Copyright © 2017年 apple. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "HWDownloader.h"

@interface UIImageView (DownCache)

/**
 设置图片

 @param url 图片链接地址
 */
- (void)setImageWithUrl:(nullable NSString *)url;

/**
 设置图片

 @param url 图片链接地址
 @param placeholder 占位图片
 */
- (void)setImageWithUrl:(nullable NSString *)url placeholderImage:(nullable UIImage *)placeholder;

/**
 设置图片

 @param url 图片链接地址
 @param placeholder 占位图片
 @param completedBlock 设置完成后的回调
 */
- (void)setImageWithURL:(nullable NSString *)url placeholderImage:(nullable UIImage *)placeholder completed:(nullable CompletionBlock)completedBlock;
@end
